package com.xiaoshuidi.cloud.module.rooms.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.xiaoshuidi.cloud.framework.mybatis.core.dataobject.BaseDO;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 房源备案
 * </p>
 *
 * @author hans.zhang
 * @since 2023-05-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("room_house_filings")
@Schema(description="房源备案")
public class RoomHouseFilings extends TenantBaseDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "房源ID")
    private Long roomHouseId;

    @Schema(description = "外部的房源ID")
    private Long externalHouseId;

    @Schema(description = "备案状态 1 备案成功 2备案失败 3 未备案")
    private String status;

    @Schema(description = "核验码")
    private String checkCode;

    @Schema(description = "核验码有效日期")
    private String checkCodeInDate;

    @Schema(description = "外部上级房源ID,冗余方便查询使用")
    private Long supperHouseId;


}
